package com.enums;

import java.util.Map;

/**
 * @author guoQ.z
 * @date 2021/1/31 20:19
 * TODO
 */
public class TestEnum {

    public static void main(String[] args) {

        StatusEnums statusEnums = BaseEnum.valueOf(StatusEnums.class, 1);
        System.out.println(statusEnums.getCode());
        Map<Integer, String> integerStringMap = BaseEnum.enumList(StatusEnums.class);
        System.out.println(integerStringMap);
        System.out.println(integerStringMap.keySet());
        System.out.println(integerStringMap.values());
    }
}
